#ifndef cTerrainServerH
#define cTerrainServerH

//--------------------------------------------------------------------------------------
// 

#include "singleton.h"
#include "terrain.h"

using namespace Core;
class cTerrainServer : public cSingleton<cTerrainServer>
{
	FRIENDSINGLETON(cTerrainServer);

private:
	cTerrainServer();
	virtual ~cTerrainServer();
private:
	cTerrainServer(cTerrainServer& oneTerrainServer);
	cTerrainServer& operator=(cTerrainServer& oneTerrainServer);

public:
	HRESULT InitGeometry();
	VOID Cleanup();
	VOID UpdataMatrices();

	bool InitTerrain(int iTileSize);
	Terrain* GetTerrain();
private:
	Terrain*	m_pTerrain;

};




#endif